//
// Created by Jisam on 2024/7/13.
//
#include "iostream"
using  namespace std;
int main(){
    int n,m;
    while(cin >> n >> m ){
        if(!n && !m) break;
        cout << n + m << "\n";
    }
    return  0;
}